package cn.itcast.domain;

import org.springframework.stereotype.Component;

@Component
public class Class {

    private Integer classno;

    private String cname;

    private Integer number;

    public Class() {

    }

    public Class(Integer classno, String cname, Integer number) {
        this.classno = classno;
        this.cname = cname;
        this.number = number;
    }

    public Integer getClassno() {
        return classno;
    }

    public void setClassno(Integer classno) {
        this.classno = classno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Class{" +
                "classno=" + classno +
                ", cname='" + cname + '\'' +
                ", number=" + number +
                '}';
    }
}
